<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>     
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<jsp:include page="header.jsp"/>

<body>

<jsp:include page="sidebar.jsp"/>

<div style="float: left;">

<form action="DocumentAdd" method="post">
<table>
	<tr>
		<td>Path: </td>
		<td><input type='text' name='path'
			value='${requestScope.path}'></td>
	</tr>
	<tr>
		<td>Index:</td>
		<td>
			<input type="radio" name='indexType' value='BPlusTree' checked="checked"> B + Tree <br/> 
			<input type="radio" name='indexType' value='SignatureFile'>Signature File 
		</td>
	</tr>
	<tr>
		<td><input type='submit' name='submit' value='Add Document' /></td>
		<td><input type='reset' name='clean' /></td>
	</tr>
</table>

<br /><br />

    <c:choose>
        <c:when test="${requestScope.success}"> 
			<font color='green'>${requestScope.message}</font>
		</c:when>
        <c:otherwise>
            <font color='red'>${requestScope.message}</font>
        </c:otherwise>
    </c:choose>

</form>

</div>

</body>

<br/>

<div>
	<jsp:include page="footer.jsp"/>
</div>

</html>